import {http} from '@/http/index.js';

/**
 * 身份证|凭证列表
 */
export function getIdentityList() {
	return http.post('index.php/user/user/card_list');
}

/**
 * 编辑、新增身份证
 * @param {Object} data 
 */
export function saveIdentity(data) {
	return http.post('index.php/user/user/SaveIdentification', data);
}

/**
 * 删除身份证
 * @param {Number} id 
 */
export function deleteIdentity(id) {
	return http.post('index.php/user/user/card_dell', {id});
}